package com.xiaomazi.sms.controller;

import com.xiaomazi.common.utils.R;
import com.xiaomazi.sms.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: llxy-parent
 * @description: 短信前端控制器
 * @author: 小马子
 * @create: 2023-02-27 21:44
 **/
@RestController
@RequestMapping("/edusms/sms")
public class SMSController {
    @Autowired
    private SmsService smsService;

    @GetMapping("send/{phone}")
    public R sendPhone(@PathVariable String phone){
        return smsService.sendPhone(phone);
    }
}
